﻿@model IEnumerable<CatHouse.Models.AboutModel>

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.CurrentPage = "contentpage";
    ViewBag.Title = "Danh sách nhân viên";
}
<div class="container">
    <h4>Index</h4>
    <p>@Html.ActionLink("Thêm mới", "Create", new { @class = "btn btn-primary" })</p>
    <table class="table table-hover tablesaw-stack tablesaw" data-tablesaw-mode="stack" data-tablesaw-sortable data-tablesaw-sortable-switch>
        <thead>
            <tr>
                <th data-tablesaw-sortable-col data-tablesaw-sortable-default-col>
                    Tên
                </th>
                <th data-tablesaw-sortable-col>
                    Ngày Sinh
                </th>
                <th data-tablesaw-sortable-col>
                    Ảnh chân dung
                </th>
                <th data-tablesaw-sortable-col>
                    Email
                </th>
                <th data-tablesaw-sortable-col>
                    Thông tin cá nhân
                </th>
                <th data-tablesaw-sortable-col>
                    Facebook
                </th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @item.Ten
                    </td>
                    <td>
                        @item.NgaySinh
                    </td>
                    <td>
                        <a href="~/images/AnhNhanvien/@item.AnhChanDung" class="anhnhanvien">@item.AnhChanDung</a>
                    </td>
                    <td>
                        @item.Email
                    </td>
                    <td>
                        @item.ThongTinCaNhan
                    </td>
                    <td>
                        @item.Facebook
                    </td>
                    <td>
                        @Html.ActionLink("Edit", "Edit", new { id = item.ID }) |
                        @Html.ActionLink("Details", "Details", new { id = item.ID }) |
                        @Html.ActionLink("Delete", "Delete", new { id = item.ID })
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>